package cms.rbac.dao;

import cms.rbac.entity.Item;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface AuthItemChildDao {
    boolean addChild(@Param("parentName") String parentName, @Param("childName") String childName);

    Item[] findChildrenItem(@Param("parentName") String parentName);

    String[] findChildrenName(@Param("parentName") String parentName);

    String[] findChildrenNameByType(@Param("parentName") String parentName, @Param("type") int type);

    boolean delete(@Param("parentName") String parentName, @Param("childName") String childName);

    boolean deleteAllChildByParent(@Param("parentName") String parentName);
}
